package com.jiudaoliu.homeprototype.service;

import com.jiudaoliu.homeprototype.POJO.VO.CommonVO;
import com.jiudaoliu.homeprototype.entity.SourceInfoEntity;

/**
 * @author 陈建
 * @Package com.jiudaoliu.homeprototype.service
 * @Description:
 * @date 2018/9/20 13:19
 */
public interface SourceInfoServie {
    /**
     * @Description: 通过模块id查找所有资源信息
     * @Param: [id]
     * @Return: com.jiudaoliu.homeprototype.POJO.VO.CommonVO
     * @Author: 陈建
     * @date: 2018/9/20 13:59
     */
    CommonVO findAllByModelid(Long id);

    /**
     * @Description: 通过模块id查找有效的资源信息
     * @Param: [status, id]
     * @Return: com.jiudaoliu.homeprototype.POJO.VO.CommonVO
     * @Author: 陈建
     * @date: 2018/9/20 13:59
     */
    CommonVO findByStatusAndModelid(String status, Long id);

    /**
     * @Description: 新增资源
     * @Param: [sourceInfo]
     * @Return: com.jiudaoliu.homeprototype.POJO.VO.CommonVO
     * @Author: 陈建
     * @date: 2018/9/20 14:11
     */
    CommonVO add(SourceInfoEntity sourceInfo);


    CommonVO findById(Long id);
}
